package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.sql.Timestamp;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_category")
@JsonInclude(JsonInclude.Include.NON_NULL)

public class CategoryModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer pid;//父级id
    private String name;//分类名称
    private Integer sort;//排序
    private Integer status;//状态1有效0无效
    private Timestamp createTime;
    private Timestamp updateTime;
    @TableField(exist = false)
    private Integer carType;//设备分类
    @TableField(exist = false)
    private List<CategoryModel> child;
//    @TableField(exist = false)
//    private String RoleName;//角色名称
    @TableField(exist = false)
    private List<CategoryModel> nationList;//民族
    @TableField(exist = false)
    private List<CategoryModel> zzmmList;//政治面貌
    @TableField(exist = false)
    private List<CategoryModel> educationList;//学历
    @TableField(exist = false)
    private List<CategoryModel> personTypeList;//人员类型
    @TableField(exist = false)
    private List<CategoryModel> positionLevelList;//岗位层级
    @TableField(exist = false)
    private List<CategoryModel> rankTitleList;//衔级
    @TableField(exist = false)
    private List<CategoryModel> positionTecList;//专业技术职务
    @TableField(exist = false)
    private List<CategoryModel> yearCheckList;//年度考评等次
    @TableField(exist = false)
    private List<CategoryModel> familyList;//家庭关系称谓


    @TableField(exist = false)
    private Integer depCount;//部门数量
    @TableField(exist = false)
    private Integer personCount;//人员数量
    @TableField(exist = false)
    private Integer electronicCount;//电子设备信息数量
    @TableField(exist = false)
    private Integer computerCount;//办公计算机数量
    @TableField(exist = false)
    private Integer testsCount;//实验数量
    @TableField(exist = false)
    private Integer incidentCount;//事件数量
    @TableField(exist = false)
    private Integer typeCount;//型号信息数量
}
